package com.zhangkunhao.notes.service.impl;

import com.zhangkunhao.notes.entity.Do.Question;


import java.sql.SQLException;
import java.util.List;

/**
 * @author 20642
 * @description TODO
 * @date 2023/4/21 16:05
 */
public interface QuestionService {
    /**
     * 查询所有
     *
     * @return
     */
    List<Question> selectAll();

    /**
     * 添加
     *
     * @param
     */
    void insert(Question question) throws Exception;


    int delete(int id) throws SQLException;

    int update(Question question, String... params) throws Exception;
//    /**
//     * 分页查询
//     * @return
//     */
//    PageBean<User> selectByPage(int currentPage, int pageSize);

}
